
<!DOCTYPE html>
<html>
<#include "../../include/resource.html">
<body>
	<#assign nid="member"> 
		<#include "../../common/function.html"> 
	<#include "../../include/header.html">
	 
	<!-- #main start-->
	<div id="main" class="clearfix">
		<!-- .wrap950 开始-->
		<div class="wrap950 ">
			<!--左边的导航user_left 开始-->
			<div class="user_left">
			<#assign mid="m_account" >
				<#include "../user_menu.html">
			</div>
			<!--左边的导航user_left 结束-->

			<!--右边的内容user_right 开始-->
			<div class="user_right">
				<div class="user_right_menu">
				  <#if givingWay=='1'>
					<#assign troublefund_type="free">
					<#elseif givingWay=='0'>
					<#assign troublefund_type="paid">
					<#elseif donateOutStatus=='1'>
					<#assign troublefund_type="list">
					</#if>	
					<#include "troublefund_menu.html">
				</div>
				<!--右边的内容user_right_main 开始-->
				<div class="user_right_main">
					<div class="user_help " style="text-align:left;">
					<#if givingWay=='1'>
					<form action="" method="post">
						<table  border="0"  cellspacing="1" class="table table-striped  table-condensed" >
							<tr>
							   <td colspan="5">急难基金无偿功德榜</td>
							</tr>
							<tr class="head">
								<td>序号</td>
								<td>时间</td>
								<td>用户名</td>
								<td>捐赠金额</td>
								<td>使用要求</td>
							</tr>
							<#list list as item>
							<tr>
								<td>${(item_index+1)!"错误类型!"}</td>
								<td>${dateformat(item.addtime)}</td>
								<td><#if item.display_way==0>匿名<#elseif item.display_way==1>${item.username}<#elseif item.display_way==2>${item.realname}<#elseif item.display_way==3>${item.username}${item.realname}</#if></td>
								<td>${item.money!0}</td>
								<td>${item.remark!""}</td>
							</tr>
							</#list>
							<tr>
								<td colspan="11" class="page">
									<div align="center">
										<#import "../../common/page.html" as pager>  
			         	 				<@pager.pagination page=page2 url="/member/troublefund/troubleFund.html?giving_way=1" map=param2 style="style1"  />
		         	 				</div>  
								</td>
							</tr>
						</table>
					</form>
						
					<#elseif givingWay=='0'>
					<form action="" method="post">
						<table  border="0"  cellspacing="1" class="table table-striped  table-condensed" >
							<tr>
							   <td colspan="5">活动捐赠功德榜</td>
							</tr>
							<tr class="head">
								<td>序号</td>
								<td>时间</td>
								<td>捐款人</td>
								<td>捐赠金额</td>
								<td>奖励金额</td>
								<td>转入基金</td>
							</tr>
							<#list list as item>
							<tr>
								<td>${(item_index+1)!"错误类型!"}</td>
								<td><#if item.addtime??>${dateformat(item.addtime)}</#if></td>
								<td><#if item.display_way==0>匿名<#elseif item.display_way==1>${item.username}<#elseif item.display_way==2>${item.realname}<#elseif item.display_way==3>${item.username}${item.realname}</#if></td>
								<td>${item.money!0}</td>
								<td>${item.award_money!0}</td>
								<td>${item.into_funds!""}</td>
							</tr>
							</#list>
							<tr>
								<td colspan="11" class="page">
									<div align="center">
										<#import "../../common/page.html" as pager>  
			         	 				<@pager.pagination page=page3 url="/member/troublefund/troubleFund.html?giving_way=0" map=param3 style="style1"  />
		         	 				</div>  
								</td>
							</tr>
						</table>
					</form>	
					<#elseif donateOutStatus=='1'>
					<form action="" method="post">
						<table  border="0"  cellspacing="1" class="table table-striped  table-condensed" >
							<tr>
							   <td colspan="5">基金无息借款明细表</td>
							</tr>
							<tr class="head">
								<td>序号</td>
								<td>时间</td>
								<td>借款人</td>
								<td>金额</td>
								<td>用途</td>
								<td>约定还款日期</td>
								<td>归还情况</td>
								<td>备注</td>
							</tr>
							<#list donateOutlist as item>
							<tr>
								<td>${(item_index+1)!"错误类型!"}</td>
								<td><#if item.addtime??>${dateformat(item.addtime)}</#if></td>
								<td>${item.username!""}</td>
								<td>${item.money!0}</td>
								<td>${item.borrow_use!0}</td>
								<td><#if item.repayment_time??>${item.repayment_time}</#if></td>
								<td>${item.borrow_content!0}</td>
								<td>${item.remark!0}</td>
							</tr>
							</#list>
							<tr>
								<td colspan="11" class="page">
									<div align="center">
										<#import "../../common/page.html" as pager>  
			         	 				<@pager.pagination page=page url="/member/troublefund/troubleFund.html?donateOutStatus=1" map=param style="style1"  />
		         	 				</div>  
								</td>
							</tr>
						</table>
					</form>	
				</#if>				
					<!-- 内容结束 -->
					</div>
				</div>
				<!--右边的内容user_right_main 结束-->
			</div>
			<!--右边的内容user_right 结束-->
		</div>
		<!-- .wrap950 结束-->
	</div>
	<!-- #main start-->
	<#include "../../include/footer.html">